<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class LearnVideoChapterStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'bail|required|string',
            'learn_video_id' => 'bail|required|int',
            'section_count' => 'bail|nullable|int',
            'total_second' => 'bail|nullable|int',
            'preview_enabled' => 'bail|nullable|int',
            'preview_second' => 'bail|nullable|int',
            'sort' => 'bail|nullable|int',
        ];
    }
}
